package com.liang.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liang.mall.entity.Admin;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lin
 * @since 2021-05-07
 */
public interface AdminService extends IService<Admin> , UserDetailsService {

    Boolean login(String username,String password);

    IPage<Admin> getByPage(Integer pageNum, Integer pageSize);

    IPage<Admin> queryByName(Integer pageNum, Integer pageSize, String username);
}
